"use strict";

angular.module("app").directive("appPositionList", ["$http", function($http){
	return {
		restrict: "A",
		replace: true,
		templateUrl: "view/template/positionList.html",
		scope: {
			data: "=",
			filterObj: "=",
			isFavorite: "=",
		},
		link: function($scope){
			$scope.select = function(item){
//				TODO: 将选择信息传回后端
				item.select = !item.select;
			};
		}
	};
}]);
